package com.foreveross.fetl.util;

import java.util.HashMap;
import java.util.Map;

public class TestCommonData {
	public static Map<String, String> grabKeyMap = new HashMap<String, String>();
	public static Map<String, String> grabNameMap = new HashMap<String, String>();
	public static Map<String, String> getGrabHome() {
		Map<String, String> homeMap = new HashMap<String, String>();
		homeMap.put("深圳航空官网", "20000");
		homeMap.put("东方航空官网", "20001");
		homeMap.put("山东航空官网", "20002");
		homeMap.put("四川航空官网", "20003");
		homeMap.put("海南航空官网", "20004");
		homeMap.put("中国南方航空官网", "20005");
		homeMap.put("中国国际航空官网", "20006");
		homeMap.put("厦门航空官网", "20007");
		return homeMap;
	}
	static {
		grabKeyMap.put("12", "20000");
		grabKeyMap.put("13", "00004");
		grabKeyMap.put("6", "00005");
		grabKeyMap.put("4", "00001");
		grabKeyMap.put("1", "00002");
		grabKeyMap.put("2", "20006");
		grabKeyMap.put("3", "20005");
		grabKeyMap.put("11", "20007");
		grabKeyMap.put("5", "20001");
		grabKeyMap.put("7", "20002");
		grabKeyMap.put("8", "20003");
		grabKeyMap.put("9", "20004");
		grabKeyMap.put("10", "20000");
	}
	static {
		grabNameMap.put("20000", "深圳航空官网");
		grabNameMap.put("20001", "东方航空官网");
		grabNameMap.put("20002", "山东航空官网");
		grabNameMap.put("20003", "四川航空官网");
		grabNameMap.put("20004", "海南航空官网");
		grabNameMap.put("20005", "中国南方航空官网");
		grabNameMap.put("20006", "中国国际航空官网");
		grabNameMap.put("20007", "厦门航空官网");
		grabNameMap.put("00001", "淘宝旅游网");
		grabNameMap.put("00002", "去哪儿网");
		grabNameMap.put("00003", "携程网");
		grabNameMap.put("00004", "艺龙网");
		grabNameMap.put("00005", "一起飞网");
	}

	public static Map<String, String> getGrabAll() {
		Map<String, String> homeMap = new HashMap<String, String>();
		homeMap.put("深圳航空官网", "20000");
		homeMap.put("东方航空官网", "20001");
		homeMap.put("山东航空官网", "20002");
		homeMap.put("四川航空官网", "20003");
		homeMap.put("海南航空官网", "20004");
		homeMap.put("中国南方航空官网", "20005");
		homeMap.put("中国国际航空官网", "20006");
		homeMap.put("厦门航空官网", "20007");
		homeMap.put("淘宝旅游网", "00001");
		homeMap.put("去哪儿网", "00002");
		homeMap.put("携程网", "00003");
		homeMap.put("艺龙网", "00004");
		homeMap.put("一起飞网", "00005");
		return homeMap;
	}
	public static Map<String,String> getGrabAllOfficialWebsite(){
		Map<String, String> homeMap = new HashMap<String, String>();
		homeMap.put("深圳航空官网", "20000");
		homeMap.put("东方航空官网", "20001");
		homeMap.put("海南航空官网", "20004");
		homeMap.put("中国南方航空官网", "20005");
		homeMap.put("中国国际航空官网", "20006");
		homeMap.put("厦门航空官网", "20007");
		homeMap.put("山东航空官网", "20002");
		homeMap.put("四川航空官网", "20003");
		return homeMap;
	}
	
	public static Map<String,String> getCarrierFullNameMap(){
		Map<String, String> homeMap = new HashMap<String, String>();
		homeMap.put("CA", "中国国际航空");
		homeMap.put("CZ", "中国南方航空");
		homeMap.put("MU", "中国东方航空");
		homeMap.put("ZH", "深圳航空");
		homeMap.put("HU", "海南航空");
		homeMap.put("3U", "四川航空");
		homeMap.put("MF", "厦门航空");
		homeMap.put("SC", "山东航空");
		homeMap.put("DZ", "东海航空");
		homeMap.put("QW", "青岛航空");
		homeMap.put("DR", "瑞丽航空");
		homeMap.put("JD", "首都航空");
		homeMap.put("KY", "昆明航空");
		homeMap.put("GS", "天津航空");
		homeMap.put("8L", "祥鹏航空");
		homeMap.put("PN", "西部航空");
		homeMap.put("BK", "奥凯航空");
		homeMap.put("HO", "吉祥航空");
		return homeMap;
	}
	
	public static Map<String,String> getCarrierNameMap(){
		Map<String,String> map =new HashMap<String,String>();
		map.put("CA", "国航");
		map.put("CZ", "南航");
		map.put("MU", "东航");
		map.put("ZH", "深航");
		map.put("HU", "海航");
		map.put("3U", "川航");
		map.put("MF", "厦航");
		map.put("SC", "山航");
		map.put("DZ", "东海");
		map.put("QW", "青岛");
		map.put("DR", "瑞丽");
		map.put("JD", "首都");
		map.put("KY", "昆明");
		map.put("GS", "天津");
		map.put("8L", "祥鹏");
		map.put("PN", "西部");
		map.put("BK", "奥凯");
		map.put("HO", "吉祥");
		return map;	
	}
	public static Map<String, String> getGrabChannel() {
		Map<String, String> channelMap = new HashMap<String, String>();
		channelMap.put("淘宝旅游网", "00001");
		channelMap.put("去哪儿网", "00002");
		channelMap.put("携程网", "00003");
		channelMap.put("艺龙网", "00004");
		channelMap.put("一起飞网", "00005");
		return channelMap;
	}

	/**
	 * 取得代理名称
	 * 
	 * @return
	 */
	public static String[] getAgentNames() {
		String[] strs = new String[] { "快乐e行", "出票网", "南湖国旅网", "天泰航空", "拍票网",
				"祥和航空", "达志成航空", "逍遥行商旅网", "宇翔商旅网", "e百商旅网", "飞扬航空","荣翔商旅网" ,"飞飞商旅网","网逸旅行网","拍票网" };
		return strs;
	}

	/**
	 * 
	 * @return <起点城市三字码，所属区域代码>
	 */
	public static Map<String, String> getAirPortAreaMap() {
		String[] st = ("AQG\t05\n" + "BFU\t05\n" + "FUG\t05\n" + "HFE\t05\n"
				+ "TXN\t05\n" + "NAY\t01\n" + "PEK\t01\n" + "FOC\t05\n"
				+ "JJN\t05\n" + "LCX\t05\n" + "WUS\t05\n" + "XMN\t05\n"
				+ "CHW\t06\n" + "DNH\t06\n" + "IQN\t06\n" + "JGN\t06\n"
				+ "LHW\t06\n" + "CAN\t07\n" + "FUO\t07\n" + "MXZ\t07\n"
				+ "SWA\t07\n" + "SZX\t07\n" + "ZHA\t07\n" + "ZUH\t07\n"
				+ "BHY\t07\n" + "KWL\t07\n" + "LZH\t07\n" + "NNG\t07\n"
				+ "WUZ\t07\n" + "ACX\t03\n" + "AEB\t03\n" + "KWE\t03\n"
				+ "TEN\t03\n" + "ZYI\t03\n" + "HZH\t03\n" + "AVA\t03\n"
				+ "HAK\t07\n" + "SYX\t07\n" + "HDG\t01\n" + "SHP\t01\n"
				+ "SJW\t01\n" + "AYN\t04\n" + "CGO\t04\n" + "LYA\t04\n"
				+ "NNY\t04\n" + "DQA\t02\n" + "HEK\t02\n" + "HRB\t02\n"
				+ "JMU\t02\n" + "MDG\t02\n" + "NDG\t02\n" + "ENH\t04\n"
				+ "WUH\t04\n" + "XFN\t04\n" + "YIH\t04\n" + "CGD\t04\n"
				+ "CSX\t04\n" + "DYG\t04\n" + "HJJ\t04\n" + "LLF\t04\n"
				+ "CGQ\t02\n" + "JIL\t02\n" + "TNH\t02\n" + "CZX\t05\n"
				+ "LYG\t05\n" + "NKG\t05\n" + "NTG\t05\n" + "WUX\t05\n"
				+ "XUZ\t05\n" + "YNZ\t05\n" + "JDZ\t04\n" + "JGS\t04\n"
				+ "JIU\t04\n" + "KHN\t04\n" + "KOW\t04\n" + "AOG\t02\n"
				+ "CHG\t02\n" + "CNI\t02\n" + "DDG\t02\n" + "DLC\t02\n"
				+ "JNZ\t02\n" + "SHE\t02\n" + "YNJ\t02\n" + "BAV\t01\n"
				+ "CIF\t01\n" + "DSN\t01\n" + "HET\t01\n" + "HLD\t01\n"
				+ "HLH\t01\n" + "NZH\t01\n" + "TGO\t01\n" + "WUA\t01\n"
				+ "XIL\t01\n" + "INC\t06\n" + "GOQ\t06\n" + "XNN\t06\n"
				+ "DOY\t05\n" + "JNG\t05\n" + "TAO\t05\n" + "TNA\t05\n"
				+ "WEF\t05\n" + "WEH\t05\n" + "YNT\t05\n" + "CIH\t01\n"
				+ "DAT\t01\n" + "LYI\t01\n" + "TYN\t01\n" + "YCU\t01\n"
				+ "AKA\t06\n" + "ENY\t06\n" + "HZG\t06\n" + "UYN\t06\n"
				+ "XIY\t06\n" + "PVG\t05\n" + "SHA\t05\n" + "CTU\t03\n"
				+ "DAX\t03\n" + "GNY\t03\n" + "JZH\t03\n" + "LZO\t03\n"
				+ "MIG\t03\n" + "NAO\t03\n" + "PZI\t03\n" + "WXN\t03\n"
				+ "XIC\t03\n" + "YBP\t03\n" + "TSN\t01\n" + "BPX\t03\n"
				+ "LXA\t03\n" + "AKU\t06\n" + "FYN\t06\n" + "HMI\t06\n"
				+ "HTN\t06\n" + "IQM\t06\n" + "KCA\t06\n" + "KHG\t06\n"
				+ "KRL\t06\n" + "KRY\t06\n" + "TCG\t06\n" + "URC\t06\n"
				+ "YIN\t06\n" + "BSD\t03\n" + "DIG\t03\n" + "DLU\t03\n"
				+ "JHG\t03\n" + "KMG\t03\n" + "LJG\t03\n" + "LNJ\t03\n"
				+ "LUM\t03\n" + "SYM\t03\n" + "ZAT\t03\n" + "HGH\t05\n"
				+ "HSN\t05\n" + "HYN\t05\n" + "JUZ\t05\n" + "NGB\t05\n"
				+ "WNZ\t05\n" + "YIW\t05\n" + "CKG\t05\n" + "HKG\t07\n"
				+ "MFM\t07").split("\n");
		Map<String, String> map = new HashMap<String, String>();
		for (String s : st) {
			String[] temp = s.split("\t");
			map.put(temp[0], temp[1]);
		}
		return map;
	}

	public static String[] getAllHBaseTable() {
		String[] tables = ("AirChinaRoundTrip\n" + "AirChinaSingleTrip\n"
				+ "CsAirRoundTrip\n" + "CsAirSingleTrip\n"
				+ "DonghanRoundTrip\n" + "DonghanSingleTrip\n"
				+ "HainanRoundTrip\n" + "HainanSingleTrip\n"
				+ "QunarRoundTrip\n" + "QunarSingleTrip\n"
				+ "ShandongRoundTrip\n" + "ShandongSingleTrip\n"
				+ "ShenzhenRoundTrip\n" + "ShenzhenSingleTrip\n"
				+ "SichuanRoundTrip\n" + "SichuanSingleTrip\n"
				+ "TaobaoRoundTrip\n" + "TaobaoSingleTrip\n"
				+ "XiaMenRoundTrip\n" + "XiaMenSingleTrip").split("\n");
		return tables;
	}
	
	/**
	 * 
	 * 取得所有的区域Map<区域编号,区域名称> 
	 * @return
	 */
	public static Map<String, String> getAreaMap() {
		String[] strs = ("华南\t07\n" + "西北\t06\n" + "华东\t05\n" + "华中\t04\n"
				+ "西南\t03\n" + "东北\t02\n" + "华北\t01").split("\n");
		Map<String,String> map =new HashMap<String,String>();
		for(String s:strs){
			String[] t = s.split("\t");
			map.put(t[0], t[1]);
		}
		return map;

	}
	
	public static Map<String,String> getHotLine(){
		Map<String,String> map = new HashMap<String,String>();
		map.put("CAN", "CTU");//广州==>成都
		map.put("CAN", "XMN"); //广州==>厦门
		map.put("CAN", "CKG");//广州==>重庆
		
		map.put("SHA", "CAN");
		map.put("SHA", "PEK");
		map.put("SHA", "CKG");
		
		map.put("CKG", "CAN");
		map.put("CKG", "PEK");
		map.put("CKG", "SHA");
		
		
		return map;
		
	}
	

}
